import 'dart:io';

import 'package:camera/camera.dart';
import 'package:flutter/material.dart';

/// 全局配置
class Global {
  static late List<CameraDescription> cameras;
  /// init
  static Future init() async {
    print('初始化');
    // 运行初始
    WidgetsFlutterBinding.ensureInitialized();
    cameras = await availableCameras();
  }
}